package com.zb.frame.modules.sys.mapper;

import com.zb.frame.modules.sys.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author bangZZ
 * @since 2020-06-04
 */
@Repository
public interface UserMapper extends BaseMapper<User> {

    User getUserByName(String username);

    List<Map<String, Object>> getUserStateAndRoles(Long userId);
}
